<%@page import="grupobbva.pe.operhc.domain.SegUsuario"%>
<%@page import="java.util.List"%>
<%@page import="java.util.Map"%>
<%@page import="grupobbva.pe.operhc.util.Constant"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<%
String tituloGestor=request.getSession().getAttribute(Constant.MENSAJES_TITULO_GESTOR_SESSION)==null?"":(String)request.getSession().getAttribute(Constant.MENSAJES_TITULO_GESTOR_SESSION);
%>
<head>
<script>
var rutaContexto1 = location.pathname;
var rutaContexto2 = "<%=request.getContextPath()%>";
var rutaContexto = rutaContexto1.substr(0, rutaContexto1.indexOf(rutaContexto2)) + rutaContexto2;
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title><%=tituloGestor%></title>
<link rel="stylesheet" type="text/css" href="css/operhc_style.css" />
</head>
<!-- 
<body onload="cerrarVentana();">
 -->
<body>
<p></p>
<p></p>
<p></p>
<table width="100%">
	<tr>
		<td><img alt="" src="images/LogoBBVA.png"> </td>
	</tr>
</table>

<div class="cabeceraAplicacion"><%=tituloGestor%></div>
<div class="cabeceraCliente" style="text-align: center;">
<bean:message key="etiqueta.error.controlado"/> 
</div>
<div class="cabeceraMenuGeneral">
	<table width="100%">
		<tr>
		<td align="center" valign="middle">
		<br/>
		<%
	Object messageError = request.getAttribute("messageError");
	if(messageError != null){
		if(messageError instanceof List){
			
			List listMsg = (List)messageError;
			if(!listMsg.isEmpty()){%>
				<br/>
				<center>
				<div class="errorLogin">
					<% 
					for(int i = 0; i < listMsg.size(); i++){%>
						<img alt="" src="images/icono_error.png" width="25px" height="25px" align="middle">&nbsp;
			    		<%=listMsg.get(i)%><br/>
					<%}
					%>	
				</div>
				</center>
			<%}			
			
		}else{
			if(!"".equals(messageError)){%>
				<br/>
				<center>
				<div class="errorLogin" style="vertical-align: middle;">
			    	<img alt="" src="images/icono_error.png" width="25px" height="25px" align="middle">&nbsp;
			    	<%=messageError%><br/>
			    </div>
			    </center>
			<%}
		}
	}
%>
		
		</td>
		</tr>	
	</table>
</div>

<script type="text/javascript">

function cerrarVentana(){
	setTimeout("window.close()", 10000);	
} 

</script>

</body>
</html>